home *** CD-ROM | disk | FTP | other *** search
- Path: news.dseg.ti.com!news
- From: grubin@ti.com (Geoffrey Rubin)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ Shortcomings ?
- Date: 15 Mar 1996 18:55:35 GMT
- Organization: AWP
- Message-ID: <4icef7$im2@mksrv1.dseg.ti.com>
- References: <31488E8D.167E@aw.sgi.com>
- NNTP-Posting-Host: cna0185662.dseg.ti.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <31488E8D.167E@aw.sgi.com>, mgix@aw.sgi.com says...
- >2. Pointer type manipulation
- >-----------------------------
- >
- >A very disappointing thing in C++ (unless I am mistaken and it is actually
- >possible to do so) is the following situation:
- >
- >If A is a class, then most operations on A can be redefined.
- >Because A is a full blown type.
- >
- >Sadly, the same can not be said about A* (type: pointer to A).
- >
- ... snip
-
- Have you thought of using a distinct class B that encapsulates
- internally that it contains an A*. This prevents anyone using the
- B class from knowing anything except what you make visible.
-
- Geoffrey
-
-